import * as ajax from "../../common/ajax";

// 获取教师课程列表
export const getList = () => ajax.get("/teacher/course");

// 获取单个课程
export const get = id => ajax.get("/teacher/course/" + id);

// 创建课程
export const create = course => ajax.post("/teacher/course", course);

// 更新课程
export const update = course => ajax.put("/teacher/course", course);

// 删除课程
export const remove = id => ajax.pureDelete("/teacher/course/" + id);
